package com.sjcq.demoexample.service.imp;

import com.sjcq.demoexample.entity.SysLog;
import com.sjcq.demoexample.mapper.SysLogMapper;
import com.sjcq.demoexample.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysLogServiceImp implements SysLogService{
    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public void save(SysLog sysLog) {
        if(null == sysLog){
            throw new RuntimeException("Syslog为空!");
        }
        sysLogMapper.insert(sysLog);
    }
}
